const btn = document.getElementById("btn");
btn.onclick = () => {
  alert(myApi.version);
};
const saveBtn = document.getElementById("saveBtn");
const contentInput = document.getElementById("content");

saveBtn.onclick = () => {
  const content = contentInput.value;
  myApi.saveFile(content);
};

const readBtn = document.getElementById("readBtn");
readBtn.onclick = async () => {
  const data = await myApi.readFile();
  alert(data);
};
